#ifndef MEDIANFILTER_H
#define MEDIANFILTER_H

#include "filter.h"

class MedianFilter : public Filter
{
public:
    MedianFilter();
    MedianFilter(int size);
    MedianFilter(int size, QProgressDialog *pd);

    QImage filter(const QImage &image);

private:
    int median(QList<int> list);
};

#endif
